package healththink



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(FacilitySite)
@Mock(Facility)
class FacilitySiteTests {
	
	@Test
    void testFacilitySite() {
		FacilitySite target = HealthThink.getStaticFacilitySite()
		   
		assertNotNull("(error)FacilitySite Target Null", target)
		assertNotNull("(error)FacilitySite Validation Was Not Successfull", target.validate())
		   
		target = target.save(flush:true)
		FacilitySite expected = FacilitySite.findById(target.id)
		   
		assertNotNull("(error)FacilitySite Target was not saved", target)
		assertNotNull("(error)Expected FacilitySite was null", expected)
		assertEquals("(error)Target and Expected are not Equal", target, expected)
		   
		target.delete(flush:true)
    }
}
